<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>宠物之家</title>
</head>

<body>
  <div id="app">

  </div>
  <!-- built files will be auto injected -->
    <script type="text/javascript">
        var arr = [{"id":5},{"id":6},{"id":7}];
        var newArr = arr.map(obj => obj.id);
        console.log(newArr);
    </script>
</body>

</html>